#ifndef _TCP_CLIENT_CONFIG_H_
#define _TCP_CLIENT_CONFIG_H_

#if defined(__cplusplus)
extern "C" {
#endif

#include "infra_types.h"
#include "infra_defs.h"


/* Default timeout interval of tcp client request in millisecond */
#define CONFIG_TC_SEND_DATA_TIMEOUT                         (1000)

/* Maximum send buffer size */
#define CONFIG_TC_BUFFER_SEND_MAX                           (10*1024)
/* Maximum read buffer size */
#define CONFIG_TC_BUFFER_READ_MAX                           (10*1024*1024)

/* TLV帧格式 type 长度 */
#define CONFIG_TC_TLV_TYPE_LEN                              (2)

#define CONFIG_TC_TLV_LENGTH_LEN                            (4)

/** TLV type ping 定义 */
#define CONFIG_TC_TLV_TYPE_PING                             (0)

#define CONFIG_TC_TLV_TYPE_ERROR                            (-1)

#define CONFIG_TC_RECONNECT_INTERVAL_MIN_MS                 (2000)

#define CONFIG_TC_RECONNECT_INTERVAL_MAX_MS                 (60000)

#define CONFIG_TC_KEEPALIVE_INTERVAL_MS                     (2000)




#if defined(__cplusplus)
}
#endif
#endif


